import instance from "@/http/request"
// 详情页接口
export function getDetailApi(data) {
    return instance({
        method: 'get',
        url: 'api/pro/detail/' + data.proid
    })
}

// 加入购物车接口
export function addCarApi(data) {
    return instance({
        method: 'post',
        url: '/api/cart/add',
        data
    })
}

//查看购物车
export function getCarListApi(data) {
    return instance({
        method: 'post',
        url: '/api/cart/list',
        data
    })
}